//
//  MapDeletedPopView.m
//  markmap
//
//  Created by 甘世清 on 2024/4/5.
//

#import "MapDeletedPopView.h"

@implementation MapDeletedPopView

- (void)SQ_UIViewForSelfView{
    self.layer.cornerRadius = 20;
    self.layer.masksToBounds = YES;
    self.backgroundColor = UIColor.whiteColor;
    
    UILabel * la = [[UILabel alloc]init];
    la.text = SQNSLocalString(@"提示");
    la.font = FONT_MEDIUM(24);
    la.textColor = SQColor333333;
    [self addSubview:la];
    [la mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerX.equalTo(self);
        make.top.equalTo(self).offset(20);
    }];
    
    self.la1 = [[UILabel alloc]init];
    self.la1.text = SQNSLocalString(@"是否删除该标记(此操作不可逆)?");
    self.la1.font = FONT_REGULAR(14);
    self.la1.textColor = SQColor333333;
    [self addSubview:self.la1];
    [self.la1 mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerX.equalTo(self);
        make.top.equalTo(self).offset(70);
    }];
    
    [self addSubview:self.leftBtn];
    [self addSubview:self.rightBtn];
    [self.leftBtn mas_makeConstraints:^(MASConstraintMaker *make) {
        make.width.mas_equalTo(140);
        make.height.mas_equalTo(48);
        make.bottom.equalTo(self.mas_bottom).offset(-FootHeight-20);
        make.left.equalTo(self).offset(22);
    }];
    [self.rightBtn mas_makeConstraints:^(MASConstraintMaker *make) {
        make.width.mas_equalTo(140);
        make.height.mas_equalTo(48);
        make.bottom.equalTo(self.mas_bottom).offset(-FootHeight-20);
        make.right.equalTo(self.mas_right).offset(-22);
    }];
    
}

- (SQCustomButton *)leftBtn{
    if (!_leftBtn) {
        _leftBtn = [[SQCustomButton alloc]initType:SQCustomButtonTopImageType imageSize:CGSizeMake(0, 0) midmargin:0];
        _leftBtn.text = SQNSLocalString(@"取消");
        _leftBtn.textColor = SQColor333333;
        _leftBtn.font = FONT_MEDIUM(16);
        _leftBtn.layer.cornerRadius = 24;
        _leftBtn.backgroundColor = SQColor(@"#4AF8CE");
    }
    return _leftBtn;
}
- (SQCustomButton *)rightBtn{
    if (!_rightBtn) {
        _rightBtn = [[SQCustomButton alloc]initType:SQCustomButtonTopImageType imageSize:CGSizeMake(0, 0) midmargin:0];
        _rightBtn.text = SQNSLocalString(@"确定");
        _rightBtn.textColor = SQColor333333;
        _rightBtn.font = FONT_MEDIUM(16);
        _rightBtn.layer.cornerRadius = 24;
        _rightBtn.backgroundColor = SQColor(@"#E8E8E8");
    }
    return _rightBtn;
}

@end
